﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using MobileSales.Model.Params;
using System.ServiceModel.Web;

namespace MobileSales.Server.RestServices
{
    [ServiceContract]
    public interface IParamServiceREST
    {
        [OperationContract]
        [WebGet(BodyStyle = WebMessageBodyStyle.Bare,
                RequestFormat = WebMessageFormat.Json,
                ResponseFormat = WebMessageFormat.Json,
                UriTemplate = "GetParam/{paramId}")]
        Param GetParam(string paramId);

        [OperationContract]
        [WebGet(BodyStyle = WebMessageBodyStyle.Bare,
                RequestFormat = WebMessageFormat.Json,
                ResponseFormat = WebMessageFormat.Json,
                UriTemplate = "GetParamList")]
        IEnumerable<Param> GetParamList();
    }
}
